package org.example.springboot.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @author 莫磊
 * @date 2025/8/16
 * @description
 */
@Data
@Component
@ConfigurationProperties("user")
public class UserConfig {
    private String name;

    private Integer age;

    private Map<String, String> mapping;

    private List<String> schools;

    private AddressConfig address;

    private String[] strs;
}
